package org.springframework.zp.transaction.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.zp.transaction.service.PropagationUserService1;
import org.springframework.zp.transaction.service.PropagationUserService2;

@Component
public class PropagationController {


	@Autowired
	PropagationUserService1 service1;
	@Autowired
	PropagationUserService2 service2;

	public void update() {
		try {
			// conn2
			// create transaction1
			service1.update();
			// create transaction2
			service2.update();
		} catch (Exception e) {

		}


	}
}
